@extends('master.app') @section('title', 'Create Customer') @section('pageCSS') @endsection @section('body') {{-- Header --}} Create Customer Add a new customer record Back {{-- Validation Errors --}} @if ($errors->any()) Please fix the following: @foreach ($errors->all() as $error) {{ $error }} @endforeach @endif @csrf {{-- Name --}} Name @error('name') {{ $message }} @enderror {{-- Province --}} Province Choose Province @foreach ($provinces as $row) id)> {{ $row->title_en ?? $row->name ?? ('Province #'.$row->id) }} @endforeach @error('province_id') {{ $message }} @enderror {{-- Phone --}} Phone @error('phone') {{ $message }} @enderror {{-- Address --}} Address @error('address') {{ $message }} @enderror {{-- Type (optional UI) --}} Account Type If you want a login account, choose type S Customer (C) Has Login (S) {{-- Email --}} Email @error('email') {{ $message }} @enderror {{-- Password --}} Password @error('password') {{ $message }} @enderror {{-- Actions --}} Save Cancel @endsection @section('pageJs') @endsection