diff --git a/Entities/Gateway.php b/Entities/Gateway.php index 55967c3..91ad2da 100755 --- a/Entities/Gateway.php +++ b/Entities/Gateway.php @@ -85,17 +85,15 @@ public function fields(Blueprint $table = null): void */ public function structure($structure): array { - $structure = [ - 'table' => ['title', 'ledger_id', 'currency_id', 'consumer_key', 'consumer_secret', 'initiator_name', 'passkey', 'business_shortcode', 'phone_number', 'method', 'published'], - 'form' => [ - ['label' => 'Title', 'class' => 'w-full', 'fields' => ['title', 'slug']], - ['label' => 'Main', 'class' => 'w-1/2', 'fields' => ['ledger_id', 'currency_id', 'consumer_key', 'consumer_secret', 'initiator_name', 'initiator_password']], - ['label' => 'Other', 'class' => 'w-1/2', 'fields' => ['party_a', 'party_b', 'type', 'passkey', 'business_shortcode', 'phone_number', 'method']], - ['label' => 'Title', 'class' => 'w-full', 'fields' => ['default', 'sandbox', 'published']], - ['label' => 'Title', 'class' => 'w-full', 'fields' => ['description']], - ], - 'filter' => ['ledger_id', 'currency_id'], + $structure['table'] = ['title', 'ledger_id', 'currency_id', 'consumer_key', 'consumer_secret', 'initiator_name', 'passkey', 'business_shortcode', 'phone_number', 'method', 'published']; + $structure['form'] = [ + ['label' => 'Title', 'class' => 'col-span-full', 'fields' => ['title', 'slug']], + ['label' => 'Main', 'class' => 'col-span-6', 'fields' => ['ledger_id', 'currency_id', 'consumer_key', 'consumer_secret', 'initiator_name', 'initiator_password']], + ['label' => 'Other', 'class' => 'col-span-6', 'fields' => ['party_a', 'party_b', 'type', 'passkey', 'business_shortcode', 'phone_number', 'method']], + ['label' => 'Title', 'class' => 'col-span-full', 'fields' => ['default', 'sandbox', 'published']], + ['label' => 'Title', 'class' => 'col-span-full', 'fields' => ['description']], ]; + $structure['filter'] = ['ledger_id', 'currency_id']; return $structure; } diff --git a/Entities/Payment.php b/Entities/Payment.php index 47d1218..5974a26 100755 --- a/Entities/Payment.php +++ b/Entities/Payment.php @@ -76,10 +76,8 @@ public function fields(Blueprint $table = null): void */ public function structure($structure): array { - $structure = [ - 'table' => ['first_name', 'middle_name', 'last_name', 'msisdn', 'trans_type', 'trans_id', 'trans_time', 'trans_amount', 'business_short_code', 'bill_ref_number', 'invoice_number', 'completed', 'successful', 'published'], - 'filter' => ['msisdn', 'trans_amount', 'business_short_code', 'bill_ref_number', 'invoice_number', 'completed', 'successful', 'published'], - ]; + $structure['table'] = ['first_name', 'middle_name', 'last_name', 'msisdn', 'trans_type', 'trans_id', 'trans_time', 'trans_amount', 'business_short_code', 'bill_ref_number', 'invoice_number', 'completed', 'successful', 'published']; + $structure['filter'] = ['msisdn', 'trans_amount', 'business_short_code', 'bill_ref_number', 'invoice_number', 'completed', 'successful', 'published']; return $structure; } diff --git a/Entities/Simulate.php b/Entities/Simulate.php index 8ce19f5..709491b 100755 --- a/Entities/Simulate.php +++ b/Entities/Simulate.php @@ -68,10 +68,8 @@ public function fields(Blueprint $table = null): void */ public function structure($structure): array { - $structure = [ - 'table' => ['amount', 'phone', 'reference', 'gateway_id', 'completed', 'successful'], - 'filter' => ['amount', 'phone', 'reference', 'gateway_id', 'completed', 'successful'], - ]; + $structure ['table'] = ['amount', 'phone', 'reference', 'gateway_id', 'completed', 'successful']; + $structure ['filter'] = ['amount', 'phone', 'reference', 'gateway_id', 'completed', 'successful']; return $structure; } diff --git a/Entities/Stkpush.php b/Entities/Stkpush.php index 7d9409f..a00e6c0 100755 --- a/Entities/Stkpush.php +++ b/Entities/Stkpush.php @@ -71,16 +71,14 @@ public function fields(Blueprint $table = null): void public function structure($structure): array { - $structure = [ - 'table' => ['amount', 'phone', 'reference', 'command', 'gateway_id', 'completed', 'successful', 'merchant_request_id', 'checkout_request_id'], - 'form' => [ - ['label' => 'Phone', 'class' => 'w-full', 'fields' => ['phone']], - ['label' => 'Stkpush', 'class' => 'w-1/2', 'fields' => ['amount', 'reference', 'merchant_request_id', 'checkout_request_id']], - ['label' => 'Setting', 'class' => 'w-1/2', 'fields' => ['gateway_id', 'completed', 'successful']], - ['label' => 'Description', 'class' => 'w-full', 'fields' => ['description']], - ], - 'filter' => ['amount', 'phone', 'reference', 'command', 'gateway_id', 'completed', 'successful'], + $structure['table'] = ['amount', 'phone', 'reference', 'command', 'gateway_id', 'completed', 'successful', 'merchant_request_id', 'checkout_request_id']; + $structure['form'] = [ + ['label' => 'Phone', 'class' => 'col-span-full', 'fields' => ['phone']], + ['label' => 'Stkpush', 'class' => 'col-span-6', 'fields' => ['amount', 'reference', 'merchant_request_id', 'checkout_request_id']], + ['label' => 'Setting', 'class' => 'col-span-6', 'fields' => ['gateway_id', 'completed', 'successful']], + ['label' => 'Description', 'class' => 'col-span-full', 'fields' => ['description']], ]; + $structure['filter'] = ['amount', 'phone', 'reference', 'command', 'gateway_id', 'completed', 'successful']; return $structure; } diff --git a/Entities/Webhook.php b/Entities/Webhook.php index c08d69c..893e899 100755 --- a/Entities/Webhook.php +++ b/Entities/Webhook.php @@ -66,15 +66,13 @@ public function fields(Blueprint $table = null): void */ public function structure($structure): array { - $structure = [ - 'table' => ['slug', 'confirmation_url', 'validation_url', 'paybill_till', 'shortcode', 'published'], - 'form' => [ - ['label' => 'slug', 'class' => 'w-full', 'fields' => ['slug']], - ['label' => 'Webhook', 'class' => 'w-1/2', 'fields' => ['paybill_till', 'shortcode', 'published']], - ['label' => 'Url', 'class' => 'w-1/2', 'fields' => ['confirmation_url', 'validation_url']], - ], - 'filter' => ['slug', 'confirmation_url', 'validation_url', 'paybill_till', 'published'], + $structure['table'] = ['slug', 'confirmation_url', 'validation_url', 'paybill_till', 'shortcode', 'published']; + $structure['form'] = [ + ['label' => 'slug', 'class' => 'col-span-full', 'fields' => ['slug']], + ['label' => 'Webhook', 'class' => 'col-span-6', 'fields' => ['paybill_till', 'shortcode', 'published']], + ['label' => 'Url', 'class' => 'col-span-6', 'fields' => ['confirmation_url', 'validation_url']], ]; + $structure['filter'] = ['slug', 'confirmation_url', 'validation_url', 'paybill_till', 'published']; return $structure; } diff --git a/Resources/views/stkpush.blade.php b/Resources/views/stkpush.blade.php index 626a4b3..175a1d8 100755 --- a/Resources/views/stkpush.blade.php +++ b/Resources/views/stkpush.blade.php @@ -9,7 +9,7 @@ Phone Number diff --git a/Resources/views/tillno.blade.php b/Resources/views/tillno.blade.php index c3b94ed..ff76f20 100755 --- a/Resources/views/tillno.blade.php +++ b/Resources/views/tillno.blade.php @@ -48,7 +48,7 @@ MPESA CODE