@extends('layouts.admin.master') @section('title', 'Customer') @section('content')
Customer
@csrf
@error('customer_name')
{{ $message }}
@enderror
@error('customer_code')
{{ $message }}
@enderror
@error('customer_type')
{{ $message }}
@enderror
@error('gender')
{{ $message }}
@enderror
@error('phone_number')
{{ $message }}
@enderror
@error('email')
{{ $message }}
@enderror
@error('city')
{{ $message }}
@enderror
@error('township')
{{ $message }}
@enderror
@error('address')
{{ $message }}
@enderror
@if (count($customers) != 0) @php $count = 1; @endphp @foreach ($customers as $customer) @if ($customer['date_of_birth'] != null) @else @endif @if ($customer['customer_is_discontinued'] == 0) @elseif ($customer['customer_is_discontinued'] == 1) @endif @php $count++; @endphp @endforeach @endif
No Customer Name Other Name Customer Code Customer Type Gender DOB Phone Number Email Address City Township Address Remark Discontinued Edit Delete
{{ $count }} {{ $customer['customer_name'] }} {{ $customer['customer_other_name'] }} {{ $customer['customer_code'] }} {{ $customer['customer_type_name'] }} {{ $customer['gender'] }}{{ date('d-M-Y', strtotime($customer['date_of_birth'])) }}{{ $customer['phone_number'] }} {{ $customer['email'] }} {{ $customer['city_name'] }} {{ $customer['township_name'] }} {{ $customer['address'] }} {{ $customer['remark'] }}
@endsection